@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="noticeInfoForm">

            <input type="hidden" id="id" value="${notice.id}">
             <input type="hidden" id="type" name="type" value="update">
           

            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">标题</label>
                        <div class="col-sm-10">
                            <input class="form-control" id="title" name="title" type="text" value="${notice.title}">

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容</label>
                        <div class="col-sm-10">
                           	<textarea class="layui-textarea" id="content" name="content"
								style="display: none">  
                                ${notice.content}
                            </textarea>

							<div class="site-demo-button" style="margin-top: 20px;">
								<button class="layui-btn site-demo-layedit" data-type="content">获取编辑器内容</button>
								<button class="layui-btn site-demo-layedit" data-type="text">获取编辑器纯文本内容</button>
								<button class="layui-btn site-demo-layedit"
									data-type="selection">获取编辑器选中内容</button>
							</div>
						
                        </div>
                    </div>
                    <div class="form-group">
						<label class="col-sm-2 control-label">是否发布</label>
						<div class="col-sm-10">
							<select class="form-control input-sm" name="status" id="status">
								<option value="0"
								@if(notice.status=="0"){
						        selected
						        @}
								>否</option>
								<option value="1"
								@if(notice.status=="1"){
						        selected
						        @}
								>是</option>
							</select>

						</div>
					</div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="NoticeInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="NoticeInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/modular/system/notice/notice_info.js"></script>
@}
